package com.foreknow.dao;

import com.foreknow.entity.Constanttype;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface ConstanttypeMapper {
    /**
     * 根据id删除
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Integer id);
    /**
     * 添加
     * @param record
     * @return
     */
    int insert(Constanttype record);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    Constanttype selectByPrimaryKey(Integer id);
    /**
     * 根据record更新
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Constanttype record);
    /**
     * 根据record更新
     * @param record
     * @return
     */
    int updateByPrimaryKey(Constanttype record);


    List<Constanttype> findAll();


}